Broke out slide manager code to separate js file.