fix bug of hidden last slide.