Update slidebox/slidebox.js

transitioned event for slide end.  changed conditionals to this.firstElementChild