carousel: before and after callbacks