move slide generation code into higher level, clean up id name