adjust width when menu turns to vertical