pagination being imporoved and thumbnails beings resized