{% paginate gallery.items by 30 %} {{ gallery.items_pagination }} {% endpaginate %}