Charts are now also rendered on preview slides

- added chart creation for preview slides
- removed some duplicated code
- currently doesn’t work on the first visible preview slide when
switching to presenter mode, since no event is fired