updating canvas slides