simplify and split out function slides