You can use a membrane to separate two volumes in a flexible manner