A typical 5 flat will have a dedicated ground, run the pigtail on the trailer side to the frame and ground it. Should be able to find an existing screw, nut & bolt, or something to ground to. Same for truck side pigtail, ground it to frame. The 5 wire harnesses can be wrapped in tape or wire loom to prevent looking like sh!#