Hi @Kosenurm ,
I have a similar setup, but in a Lil different format as shown below screenshot. By selecting the checkbox on top, it selects all and, on deselect, it marks all as cleared.

Let's say your source is source1.
Step -1 :-
> On page load, ClearCollect(coll_GalDisplay,AddColumns(Source1,"ischecked",false)) this will create a collection "coll_GalDisplay" which we are going to use in gallery to display.
The new column added, ischecked will contain the value of checked Items.
> 2nd create a toggle/ separate check box (Marked in red in screen shot)
Property - OnCheck- Updateif(coll_GalDisplay,true,{ischecked: true})
Property - OnUncheck - Updateif(coll_GalDisplay,true,{ischecked: false})
For individual check boxes to select, or unselect,

Property - OnCheck- Patch(coll_GalDisplay,,ThisItem,{ischecked:true})
Property - OnUncheck - Patch(coll_GalDisplay,,ThisItem,{ischecked:true})
Please give a like and accept this as the solution if this will help in your requirement.