Talk with your surgeon about the best sleeping position following surgery.
In general, if you sleep on your side, it's a good idea to sleep on the opposite side of the eye that is healing. It's also a good idea not to put pressure on your eye as it's healing.