When ur toddler is lying sideways, cup ur hand and pat the side of ribcage upwards. It will loosen the phlegm n make him vomit it out. Always works for mine.
It's called postural drainage. U can pat ur cupped hands on the ribcage side or the back.
Prospan