dynamic class added to slides in header and footer