A haul of 8,500 illegal weight-loss pills has been seized and two men arrested in Malaga after the pair started selling the drugs online.