Make the prev, next button to go along with different intervals.