Fix bug when 1 slide displayed