fadeInFadeOut working for first frame