fixed last slide bug