add a pagination for the snippets