Add ability to collapse and uncollapse a track.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>