change slopPixel calucation