Update FlexSliderExtension to allow for before and after callback functions