implemented accordion-like behaviour with flex-box