{if $slider.images|count}
    <div class="producer-banners">
        {foreach $slider.images|array_slice:0:2 as $image}
           <div class="producer-banner-item" data-tracking-view='{get_gtm_data type='ecommerce' method='PromotionImpression' encode=true data=['slider' => $slider, 'position' => $image@iteration]}'>
               {$photo_dimensions = $cfg.Photo.types["banner_producer"].size}
              <img src="{get_photo photo=$image.photo size='banner_producer'}" alt="" width="{$photo_dimensions[0]}" height="{$photo_dimensions[1]}" class="img-fluid" loading="lazy">
           </div>
        {/foreach}
    </div>
{/if}
