updated code to make slice plots and SFH plots