fixed last slide issue