Question about riding my husband with hip pain

I love riding my husband and it’s my favorite position. My issue is that when I straddle him and try to get it in my hips and legs hurt really bad, like I can’t open up my hips wide enough for his frame? It really sucks. Does anybody have any tips on stretches or exercise I can do to help?