fix navbar issue on resize