Refactoring of the slider module. Added function to navigate to slide by number.