{% for object in instances|slice:"3" %} {{object}} {% endfor %}