Sleeping during third trimester

I know it's best to sleep on your left side, but do I have to stay that way for the entire night?! I generally switch from left to right side all night long as it hurts my hips to stay on one side for too long.