only move to next/previous if there is next/previous