removed extra whitespaces
calling displaySlides() in object scope