Side sleeping

So when AF hits, i sleep on my side because i was told that's how you're supposed to sleep. But my tight hurts from the side & im not sure how to ease the pain or if it's just by bed?