slope layer calc works