added function to make histogram of slopes