Added documentation for getNumSlides function