Focus to the next/previous loaded tab correctly