In tal caso non puoi usare slice (vedi link)
Cavicchi Andrea Problemi con javascript, jquery, ajax clicca qui
Regole del Forum