lectric allows passing arguments to events, moved slide change events to before the slide change happens.