code to draw slope on frame