Baby turns sideways in bedsides in next to me type crib ... any advice?

Le

She’s 4 months old any advice or anyone had this where she goes side to side trying to sleep she ends up sideways