{#if value && value.length > 0}
{#each value.slice(0, 3) as item} {#if "image" in item && item.image}
{item.caption {#if item.caption} {item.caption} {/if}
{:else if "video" in item && item.video}
{/if} {/each} {#if value.length > 3}
{/if}
{/if}