Update tabs navigation to take offscreen tabs into account