I have done these when the cough was bad.

Prop up the head of the bed. Either putting phone books under the legs or a pillow under the mattress.

DD2 slept with phone books under the leg od her bed for years

Not sure if she is to young but I have used the plug in type and this helps.