updating canvas size for examples