I know what you mean! I could never find a comfortable position for more than about ten minutes and the heartburn was the worst!

I tried sleeping or lying down with several pillows put in strategic places. I would lie on my side with a pillow behind me, one between my knees, and another resting under my bump. That and listening to some relaxing music. It seemed to help a bit...
I know you can find or make those little pillows that are scented with lavender. I still use those on occasion. Very relaxing!
I wish I had some good advice regarding the heartburn. I used Gaviscon with both pregnancies. I have also heard that eating an apple or a bit of rootbeer can help.
Hope you are able to get some rest tonight!

Angela x