Coating only part of a support with a magnetic layer