Fix sequential collapsing, will not freeze the browser
Simplify filter to just filter for heading to ensure performance