Autodetecting count of slides to slide when slider is in 'auto' mode