Now adds 'with-caption' class to slides which contains caption.