Sliding resistor and capacitor in parallel