A device that can be planar and used in a thin layer configuration, including as a flexible layer that can be laminated with other materials such as fabrics, is produced by using the attraction between colloidal particles of one type to a current collector and to particles of the same type to selectively adsorb cathode particles at one current collector and anode particles at the other.