Stop a action with another

I have a slideshow play button that when clicked it starts the slideshow, but when I click my go to next and prev buttons during the slideshow it doesnt automatically stop my slidehow button action of play. Any advice on how to set this up to work like this?