Fix for switching to slides back and forth.