Multiple images custom block - panel preview

Hi - I try to make a custom block in which I can add multiple images - I would Like to be able to see all the images in the panel preview - I only managed to show the 1 image.

this is the index.js:

panel.plugin("gallery/freeimg", {
    blocks: {
      freeimg: {
        computed:{
            source() {
                return this.content.img[0] || {};
              }
        },
        template: `

        
        <div class='freeimg-container'>
            <img class='freeimg' id='dd' :src='source.url'>
        </div>


        `
    }
    }
  });
  

maybe someone can help me with that?
thanks!

Any reason why you don’t use the gallery block? But check out the gallery preview how to achieve that if you need a custom block.