Pass the event from the event listener to the openSlider/closeSlider functions. This fixes an issue in Firefox where the event variable is not found