no more forced exit() after slicing

can slice another time, moved most stuff from Main to MainFrame