If they are 1D arrays, just built them into a 2D array (and transpose if needed). Now adjacent indicators are internally linked and no code is needed. Show one of the scrollbars (=the one in the variable dimension). 😄
You could also take a trip down memory lane all the way to 2007, for some related examples.