So we have mgl times the sine of theta-- that's the positive contribution by gravity-- and now we get a negative contribution by friction, because the frictional force is uphill, but the motion is downhill. 