improve hide/show of nav on resize