automatically resizing img according to the width and height of the browser page