I solved the problem by trying this way :
datasetFolder = ' F:\Datasets\.......; // add the path of your images dataset
imds = imageDatastore(datasetFolder,IncludeSubfolders=true,LabelSource="foldernames");
X=readall(imds);
XTrain = reshape( cat(3,X{:}) , [105,105,1,3410]);
YTrain=imds.Labels;
dsXTrain = arrayDatastore(XTrain,'IterationDimension',4);
dsYTrain = arrayDatastore(YTrain);
dsTrain = combine(dsXTrain,dsYTrain);
and it works perfectly