Fix so that the slider does not slide to the 11th slide
when there is only 10 of them