Baby pushes herself in cot

Chloe

Ladies how do I stop baby girl from working her way from one end of he cot to the other? She ends up all squished at the top end as she pushes herself there 🙈 sometimes before she even falls asleep properly so then I have to move her back down then it disturbs her!