Regulation of the inter-electrode distance