The sliding filament theory describes how muscle fibers contract by the sliding of actin and myosin filaments past each other. According to this theory, the sarcomeres shorten as the Z-discs are pulled closer together, but the lengths of the individual actin and myosin filaments remain constant. This shortening of the sarcomeres results in the contraction of the overall muscle fiber.