Sleeping

Does anybody else go to sleep lying on the side and wake up on there back? I’m 25 weeks and the midwife told me not to except I just wake up and I’m on my back!