hide next/prev buttons if at end