use the correct animation to collapse and expand the view in the demo