{% if slides %} {{ product_image(slides[0].image, 'product-image') }}
{% for item in slides %} {{ item.heading }} {% endfor %}
{% else %} {{ product_image(website_image or image or 'no-image.jpg', alt=website_image_alt or item_name) }} {% endif %}