Laying on your back during pregnancy

So I know you're not suppose to lay flat on your back once you get to a certain point in pregnancy because it's cuts off the blood supply or something from a major organ in your back. 
But I keep waking up during the night, on my back. I'm scared that's going to be bad.... Any opinions, advise, been there's?