Add resize on collapse feature.