saved data into slice