refactor z-index toggle to function and callback, test new hideIn method