Improve responsive and dropdown-up positioning