2d slope functions