Espanyol inched two points clear of the drop zone, while Madrid's lead was cut to one point after Atletico Madrid beat Mallorca 2-0 earlier.