Add events on transition for slidepanel.

This is cleaner than listening on the hidden event of the from view, view that might not even exists.