adds collpapsed class to list items