How to use thumbnails as pagination (by modifying the pagination automatically generated by SlidesJS)