Custom/Dynamic Widget Duration?

Hey,

I’m using the webpage widget to embed a google slide presentation (a carousel).

Do you think it’s possible to match the duration of the widget based on the number of slides ? (50 secondes per slides)