side pane switch button animation improvement