{##} {% set photoCount = activity.photos|slice(0,6)|length %} {% if photoCount > 0 %}
{% if activity.photos[0] %} {% endif %}
{% for index, photo in activity.photos|slice(1,5) %}
{% if photo.filePath %} {% endif %} {% if loop.last %} {% endif %}
{% endfor %}
{% endif %}