fix layer.hide().show() in ie9

IE9 want to show layer after hiding without this fix :(