changed size of graph to fit for multiple devices