added callback when interacting with navigation controls (arrows and dots)