simple paginator, TODO : improve performance
minor