changing box width as speed increases