better figure resizing for differnet screen sizes