update slides for ML; update genSlide function