Weighted magnets and suction cups can be attached to the bottom of the shower curtain or liner to keep them in place. They can help to prevent water from leaking outside the shower curtain by creating a seal with the tub.