How to unwrap overlaping UV island vertically?

Hi everyone! I need to unwrap vertically this overlapping, packed UV Island, but not manually, cause I have dozens of different height columns, and those UV islands need to fit trims. Any ideas?