fix for the navbar adaptation according to window resize