Add parameter to on_destroy for current slide ID

Added a parameter to the on_destroy event so that it receives the ID of
the slide that was shown when the user existed the slide show. Requires
that slide is defined with a property named id.