'closed' parameter should be taken from widget, not from field. Also, 'classname' is redundant here, it should always be 'collapsable' here.