Leg cramps

Christina
I've had terrible trouble sleeping lately due to legs cramps if I lay on one side to long I get cramps in my thighs so I'm constantly tossing and turning. Any tips for this?