Paginate beta.

Paginate working for next and previous arrows.