splitting files and movign to folder