Pagination, handle no more images