Off And On Meaning

(nautical) On different tacks, now toward, and now away from, the land.

Example:   With so much worry, I only slept off and on last night.