For hair: Wash your hair with warm water, conditioner first and shampoo second. Use gentle strokes of the comb from the scalp to the tip to remove slime.
For clothes: Pour enough white vinegar on the spot to make it damp. Then, quickly use fingers or a spare toothbrush in gentle circular motions to rinse out the slime.