smoother transition between frames