making collapse work for properties list