Slider doesn't work with 1 slide

I fixed it. Please, check it out