smoother transition to last slide