Button to chage gallery

I have a few slide deck galleries with pictures. I need to create buttons for each gallery and when clicked it changes gallery but leaves menu on page to select the next gallery. I have tried the onclick function but its not working