Expanding a quiz timer for multiple slides

Here is a quiz that has a timer. If you leave or if the timer runs out the quiz stops.

I want to further adapt this quiz to my other one,

but the timer doesnt work for multiple slides. it only works for just one slide. I cant have all of my questions located on just one slide. Is there a way to adapt the timer to work for many slides?