draw resonator lines below resonators when selecting a portal. Also reduce code duplication