Move slicing to layouts