Lateral resistor