expand/collapse html elements with variable height