Israelis held captive in Gaza and Palestinians swept into Israel detention centres have been focus of ceasefire talks.