splitting data folder into subfolders