Replaced constant for width of overlay with dynamic reference to overlay views