Refactors slide click events