Pagination resize fix