adapt navigation bar to mobile or desktop