Fixed potential bug if altSlides array had some empty slides