diff --git a/slick/slick.js b/slick/slick.js index aa3b01468..2e22a10e4 100644 --- a/slick/slick.js +++ b/slick/slick.js @@ -2399,7 +2399,7 @@ .attr('data-slick-index', slideIndex - _.slideCount) .prependTo(_.$slideTrack).addClass('slick-cloned'); } - for (i = 0; i < infiniteCount; i += 1) { + for (i = 0; i < infiniteCount + _.slideCount; i += 1) { slideIndex = i; $(_.$slides[slideIndex]).clone(true).attr('id', '') .attr('data-slick-index', slideIndex + _.slideCount)