Sleeping on right side!!

I'm 36 weeks and I've just been told how I'm sleeping is dangerous! I feel awful. I thought as long as I wasn't on my back everything was fine but now I'm panicking every time I lean to the right or wake up on my right side, sometimes I forget though, and most of the time my daughter moves more when I lean to the right so I like to feel her kick around for reassurance 😭😭😭