What is your slope_mean and slope_std values. Maybe they are too extreme and you are getting numerical issues.
slope_mean
slope_std