Create collapse ui element.