Layout of electrodes and connections