How to loosen your hips?

I’m 35 weeks and it’s like my hips are locked up. Like if I where to try to spread my legs I have to slowly do it. I can’t walk right without my hips clicking and feeling like they’re grinding together. I can’t even roll over in bed with them cracking and getting pops of pain. Is there a way to stop this???