improved how tab navigation positions on window resize and not enough space