add diagram into slide