added grid lines to graph and cut the graph at the right border