Sealing or supporting means around electrodes, matrices or membranes with sealing or supporting means in the form of a frame