What you want to do is to add a global variable and initialize it to 0. On the ready to present the page event, check if the counter is less than 5, then go back to the page. At the end of the check, have the animation to go the timeline label at 3 sec.
You can learn how to do this by looking at my blog post here
. One additional thing you need to do is to add the following code at the end of the custom actions:
where threeSec is your timeline label at 3sec and page1 is your page.
Please let me know if you have any question.
Hope it helps.
Google Web Designer team