include prev/next page link only when relevant