moving fix into a function and using it as a callback for the
slidetoggle on the menu click