set scale according to browser width