In the working example you have two sets of .media-slide divs each containing the number of thumbs that fit across the width. In the non working version you have only one .media-slide div containing all the thumbs. If you create two .media-slide divs then it starts working.e.g.