Properly slice the data