Mesoscopic aspects of the giant magnetoresistance