How to stop hogging the bed

Last night I apparently was hogging the bed. My husband tells me that he told me 9 times to move over and I'd move for a bit and just end up right back where I was or I was putting my arm around him. He didn't get much sleep because of this. I don't remember any of this from last night. We share a queen size bed now and can't upgrade to a king at the moment, and putting a pillow between us doesnt work. What can I do to be more self aware so I'm not hogging the bed anymore?