Updated slideshow script API