deal with the fact that th width of a hidden element is 0