This script doesn't manage your symbols other than monitoring the dimensions and repositioning the others in a group. So, this means you are in charge of animating open and close behavior by animating the cards. You could use custom behavior to run a close timeline on all symbols listening to the behavior and then run a timeline to expand the currently clicked symbol.