make overlay width relative