Hi. Sorry can’t help with your actual question, however if you want to add a stroke to the combined shape you could select your layer and then try Layer Styles/Stroke.
Hi, you could try precomposing two versions (1 going up, 1 going down). Mask out and subtract the still columns in your main comp, and then offset the X position of the one that needs the fewer rows(?).