Fix navbar problem when resizing browser with mobile