# How to overlap thumbnails in pro gallery

**URL:** <https://forum.wixstudio.com/t/how-to-overlap-thumbnails-in-pro-gallery/65219>\
**Category:** Ask the community\
**Tags:** question, wix-studio, code\
**Created:** [November 30, 2024, 8:55am UTC](https://forum.wixstudio.com/t/how-to-overlap-thumbnails-in-pro-gallery/65219 "2024-11-30T08:55:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![manali\_bhamre](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/manali_bhamre/32/100542_2.png) [@manali\_bhamre](https://forum.wixstudio.com/u/manali_bhamre)\
**Post date:** [November 30, 2024, 8:55am UTC](https://forum.wixstudio.com/t/how-to-overlap-thumbnails-in-pro-gallery/65219/1 "2024-11-30T08:55:10Z")

</div>

**Question:**  
How can I display a Pro Gallery slideshow with bottom thumbnails on a single viewport while ensuring the main image covers the entire screen? Specifically, is there an option to overlap the thumbnails on the main slideshow?

**Product:**  
Wix studio

**What are you trying to achieve:**  
I am trying to have thumbnails in slideshow itself

**What have you already tried:**  
i am not sure if i need to do this with adding code, which i have not tried yet.

---

<div class="post-metadata">

**Author:** ![Piotr\_Nowakowski](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/piotr_nowakowski/32/99989_2.png) [@Piotr\_Nowakowski](https://forum.wixstudio.com/u/Piotr_Nowakowski)\
**Post date:** [November 30, 2024, 9:11am UTC](https://forum.wixstudio.com/t/how-to-overlap-thumbnails-in-pro-gallery/65219/2 "2024-11-30T09:11:13Z")

</div>

No You cannot overlap elements in the gallery.  
The only gallery that has built in overlapping feature is 3d Carousel, which still is probably not what you’re looking for.

What You CAN DO is overlap an image element with the gallery, the thumbnails should have added in transparency (png files) so the part that is seethrough shows the image underneath the gallery.

 ![image](https://us1.discourse-cdn.com/wix/original/3X/4/3/438ced3f3fa909e4faab68863e7237a2d1f7b3f4.png)

the example element has transparency, the background(here black) can be any image you want to (in case it does not change)

But If there is more choose able stuff You Need to make use of an Iframe (Embed Code) and manually layer all the layers (In javascript) you want in there, you can change the layers with wix messaging service (postMessage in velo and onmessage in javascript) and link everything with galleries.

First off what are ya making?

---

<div class="post-metadata">

**Author:** ![manali\_bhamre](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/manali_bhamre/32/100542_2.png) [@manali\_bhamre](https://forum.wixstudio.com/u/manali_bhamre)\
**Post date:** [November 30, 2024, 10:48am UTC](https://forum.wixstudio.com/t/how-to-overlap-thumbnails-in-pro-gallery/65219/3 "2024-11-30T10:48:46Z")

</div>

Hey,  
I am building an architecture portfolio website

 ![Screenshot 2024-11-30 at 4.16.46 PM](https://us1.discourse-cdn.com/wix/original/3X/1/f/1f85dc643f9e10bb4e1dab2aa1801c6de32ff766.jpeg)

wanted those thumbnail images on top of the main image so that the main image takes full screen. but the method you mentioned seems very complicated to me 😁

i will try and understand it and see if its a possiblity for me to do  
Thank you so much 🙂

---

<div class="post-metadata">

**Author:** ![Piotr\_Nowakowski](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/piotr_nowakowski/32/99989_2.png) [@Piotr\_Nowakowski](https://forum.wixstudio.com/u/Piotr_Nowakowski)\
**Post date:** [November 30, 2024, 11:53am UTC](https://forum.wixstudio.com/t/how-to-overlap-thumbnails-in-pro-gallery/65219/4 "2024-11-30T11:53:32Z")

</div>

Holler!

Can’t you just leave a standalone gallery on top  
 ![image](https://us1.discourse-cdn.com/wix/original/3X/2/a/2a5925d0f3dd5f1703576024edbec04b09f065f5.png)  
That only has these or just a way to choose them and then

change the “MAIN” Image (That is on the bottom layer (background)) url source

```
  $w('#gallery-id').onCurrentItemChanged((event) => { 
  console.log(event.item.src);

    // Action to change the main image 
$w("#background-image").src = event.item.src; 

})

```

[https://dev.wix.com/docs/velo/api-reference/$w/image/introduction](https://dev.wix.com/docs/velo/api-reference/$w/image/introduction)

Also don’t forget to put this code inside wix’s dedicated on ready function,  
otherwise stuff breaks. This IS WIX FRONTEND meaning

 ![image](https://us1.discourse-cdn.com/wix/original/3X/5/2/5233d09253a34a8fc0684a65aa80efdf109b9c5b.png)

PS: You gotta turn the dev mode on

---

<div class="post-metadata">

**Author:** ![Tech\_Voyager](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tech_voyager/32/97093_2.png) [@Tech\_Voyager](https://forum.wixstudio.com/u/Tech_Voyager)\
**Post date:** [November 30, 2024, 12:14pm UTC](https://forum.wixstudio.com/t/how-to-overlap-thumbnails-in-pro-gallery/65219/5 "2024-11-30T12:14:07Z")

</div>

To achieve a slideshow where the main image covers the entire screen and thumbnails appear at the bottom, overlapping the main image, you can adjust the layout with a bit of CSS.

First, set the main image to cover the full viewport (100vh) and ensure the thumbnails are positioned at the bottom. You can position the thumbnails container absolutely and adjust its `z-index` so that it overlaps the main image without pushing it out of view. The thumbnails can be centered horizontally beneath the image.

If you want the thumbnails to change the main image when clicked, you can use a small JavaScript script to update the main image based on the thumbnail clicked.

This approach gives you a dynamic, visually appealing effect while keeping the layout clean and responsive. If you need help with the actual code implementation or more details on how to tweak the design, feel free to reach out!

---

<div class="post-metadata">

**Author:** ![manali\_bhamre](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/manali_bhamre/32/100542_2.png) [@manali\_bhamre](https://forum.wixstudio.com/u/manali_bhamre)\
**Post date:** [November 30, 2024, 12:35pm UTC](https://forum.wixstudio.com/t/how-to-overlap-thumbnails-in-pro-gallery/65219/6 "2024-11-30T12:35:35Z")

</div>

Heyllo tech\_Voyager,

First of all, thank a ton for offering your help, not a coder so still learning all this tweaks.

is it possible to help me with actual code implementation?  
How do i update z-index?

---

<div class="post-metadata">

**Author:** ![manali\_bhamre](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/manali_bhamre/32/100542_2.png) [@manali\_bhamre](https://forum.wixstudio.com/u/manali_bhamre)\
**Post date:** [November 30, 2024, 12:39pm UTC](https://forum.wixstudio.com/t/how-to-overlap-thumbnails-in-pro-gallery/65219/7 "2024-11-30T12:39:36Z")

</div>

I will try this

Thank you so much piotr

---

<div class="post-metadata">

**Author:** ![Tech\_Voyager](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tech_voyager/32/97093_2.png) [@Tech\_Voyager](https://forum.wixstudio.com/u/Tech_Voyager)\
**Post date:** [November 30, 2024, 12:42pm UTC](https://forum.wixstudio.com/t/how-to-overlap-thumbnails-in-pro-gallery/65219/8 "2024-11-30T12:42:29Z")

</div>

yes we can help you with that if you are interested we can connect on fiza@astrosia.in
