add pagination helper for twig