The present invention relates to a photo-responsive layer and layer assembly which can be used for controlling a flow of liquid for example in a water-purification device. The photo-responsive layer according to the invention comprises a first domain comprising a first material comprising molecules having a photo-responsive moiety, wherein the first domain of the photo-responsive layer is capable of undergoing a reversible geometrical change when said photo-responsive moiety is exposed to photo-activating illumination, such as UV-radiation. The photo-responsive layer is useful in UV controlled membranes e.g. for water purification.