set slice from treelist