Paginate with array