split list with splice