adds mouse event handlers to the carousel