Button in gallery not working because of On click action of gallery

Hello,   I am trying to build a gallery with a dropdown and a button in it. I set my on click action of my gallery to a page.   Whenever I press the dropdown or the button, it triggers the gallery on click action instead of the dropdown / button on click action.   I thought it would be a z-index problem, but I did not find a way to fix that.   Do you have any solution?   Thanks for help.  
1 answers

As a workaround, maybe you could put a container around everything on the gallery widget that you want to be on-click and put the on-click on that container. Then leave the button outside of it. It's not the prettiest solution, but it should work.