refresh when slides change