{% load i18n cosinnus_tags thumbnail %}
{% comment %}
Parameters:
- object: the basetaggableobject object with attached_images
- max_images: max number of gallery preview frames to show
{% endcomment %}
{% with images=object.attached_images %}
{% for image in images %}
max_images %}style="display: none"{% endif %}>
{% if forloop.counter|divisibleby:3 %}
{% endif %}
{% endfor %}
{% if max_images and max_images|intify < images|length %}