added option to enable grouping of closed bullet points