fixes #11099 - $.collapse() overrides the original dimension of the coll...

...apsed element when uncollapsing
fixes #11099

@mdo