make the beforeChange happens AFTER the slides references are updated