laying down positions

I used to always lay on my belly but now that Im starting to get a baby bump I switched to my back but I read something about if you lay on your back for too much its bad because your baby doesnt get much oxygen and sometimes that may cause still birth :( ever since I read that I try as much as I can to sleep on my sides . sometimes I forget and it hurts when I lie on my back for too much . any advice ?