layout cell children for custom templates