Update: Replaced collapse/expanding code for less buggy animations