Add callbacks for the slice navigation.