Using one Wix pro gallery to navigate another Wix pro gallery

I have a row of photos above a single slide show and I want to use wix code to use the row of photos to navigate the slideshow.

I want whichever item is clicked in the top row of photos to automatically execute the action of navigating to the same picture in the slideshow just below.

I started by trying the below code. I have a NavGallery and Gallery1. Gallery1 is the slideshow under the row of photos.

export function NavGallery_currentItemChanged(event) {
$w(“#gallery1”).currentItem
}