Clicker Game animation support

So i want my cookie to change the slide in the animation on click and save that stage until the player clicks which it then swaps to the next one, and want it to reset once it gets to the last slide. Any help? is it possible? The image is my code so far, it works by changing to the first slide but then it doesn’t work.

Link to game: Cookie Game? - Flowlab Game Creator

Sorted! its working now!

Is this basically cookie clicker?