We recommend you try running the tubing behind your head and then looping it around to your PAP machine to keep it out of the way. Keep most of the tubing away from your body and other potential items it could get snagged or tangled on as best as you can. If you have a headboard, running the tubing along the top of the headboard may help to keep it out of the way.
If that does not work, consider purchasing a hose management system which can help keep your tubing neat, secured, and tangle-free while you sleep. These hose management systems range from hooks that can be installed on a wall to standing systems that secure your PAP hosing in place.