Paginating an existing array

I have this same doubt ._.
How do you fix it?