Creating rectangular railing along curve

I’m trying to create a railing similar to the one seen in the image. Trying to use grasshopper to do it, but i don’t seem to know how to get the rectangular baluster profiles along the curve. Would really appreciate it if someone could help with this. Thanks
railing (6.9 KB)
railing.3dm (1.9 MB)

railing (15.7 KB)


thank you so much, this is a huge help