When we talk about dividing food among a few people, we normally use "slice" just before the cutting (e.g., "Would you like a slice of cake? / I'll have a slice of pie, please."). Later, in discussing the meal, we'll usually use "piece" (e.g., "I had a big piece of birthday cake last night").