Hand made paginator