Sleeping on a memory foam mattress while pregnant?

Hi ladies so we recently bought a memory foam mattress and its been so uncomfortable to sleep in. I dont know if I find it hard since im 31 weeks pregnant or what? Does anyone have a foam mattress and having the same issues.