{#each layers as layer, i (i)}
{#each Array.from({ length: layer }) as j}
{/each}
{/each}