Fix thumbnails pagination dir