improve smoothness of collapse
refactor and improve initial addition of collapsers with requestAnimationFrame