manipulate classes before changing scroll position