Devices comprising flexible or deformable elements