When not in use, simply fold it up instead of taking it off. After folding, it will not occupy space and will not affect the use of curtains.
eBay