I have to check if the target is collapsed before calling the .collapse!