fixed bugs for slide and fade effects