How do I Create a Dynamic Gallery from one database Row of images


I have 10 images within one database entry. I wish to add these images to the dynamic page corresponding to this row. I have searched everywhere but can only find adding images within a column to a gallery, not within a row.

Appreciate any help and support

$w.onReady( function() {
 $w("#dynamicDataset").onReady( () => {
  let item = $w("#dynamicDataset").getCurrentItem();
  let galleryItems = [
   {
   "type": "image",
   "src": item.image1
   },
   {
   "type": "image",
   "src": item.image2
   },
   {
   "type": "image",
    "src": item.image3
   },
   {
   "type": "image",
   "src": item.image4
   },
  ]
$w("#gallery1").items = galleryItems;
 })
})