call layer stacking routine to crack the problem that the subsetting images have different samples or lines