API update: add duration attribute to slides