accordion animation with max-height

but how not to hard-code target max-height?