Instrument for measuring slopes