Automatic fill height for collapse elements implemented

Needs to be improved but it's a good start!