Napoli scrape win at Samp