Component-wrapper for collapse animation with react-motion for elements with variable (and dynamic) height