Pass new slide index to before and after callbacks