templates: make mapping container collapsable.