{if $slider.images|count}
   <div class="slider {$class}">
      {foreach $slider.images as $image}
         <a {if $image.link}href="{$image.link}"{/if} class="slider-half">
            <img src="{get_photo photo=$image.photo size='slider'}" alt="{$image.description}" class="img-fluid">

            {if $image.description}
               <span class="title">{$image.description}</span>
            {/if}
         </a>
      {/foreach}
   </div>
{/if}
