changed collapsing speed to 0.5s