Making sure the slider doesn't crash when there are no fully visible items.