Hip pain help

I try so hard to sleep on my sides. I use a body pillow to help make things more comfortable, but my hips get so sore and feel bruised. Is there anything I can do to ease the discomfort or is this just an inevitable part of pregnancy that cant be helped?