Spacing issue

Any suggestion on how to install when I have inconsistent spacing in area of placement? It’s impossible to do same distance between each line because rooof is not consistently spaced between beams

I used a 1x2 connected to the joist