slider works for next button