Riding

I like to ride my partner but my hips always end up hurting really bad because they move out of place. Any tips to help make it less painful?