A muscle moves by contracting, though that does not necessarily means it shortens. A contracting muscle is one which is creating tension, whether through shortening or lengthening. Shortening muscles might be used to lift an object while lengthening muscles might be used to put it carefully down.