fix pagination and image size from getting too small