Code optimize for Collapsible filter.