The gapped consecutive-ones property