Adding and remove classes on the next frame to allow for animations