Slider back and forward clicking fixed

The slider was buggy when the user clicked the back and forward buttons
by turns.