Add expand/collapse functionality to sidebar