(a) A sarcomere is the portion of a myofibril between two successive 'Z' lines. During contraction, the myosin heads form cross bridges with the actin filaments and pull them towards the centre of the 'A' band, so the thin filaments slide over the thick filaments. The 'Z' lines, to which the thin filaments are attached, are pulled inwards. The distance between the two 'Z' lines falls, so the sarcomere shortens: its 'I' bands get reduced while its 'A' band retains its length. The sarcomere is the smallest unit in which this whole process of contraction takes place, so it is the functional unit.
(b) Each myofibril contains many sarcomeres arranged serially, and each muscle fibre has many myofibrils arranged parallel to one another. When all the sarcomeres in a row shorten together, the myofibril shortens; when the parallel myofibrils shorten, the whole muscle fibre shortens.