Display correctly when the number of slides is less than could have been displayed