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

...apsed element when uncollapsing

@mdo