Slide updates are now saved in a temporary variable and swapped at the end of the rotation. Slide counter is reset at the same time to avoid any repetitions of earlier slides