Using photoshop to generate code automatically out of a sliced psd has proved to be inefficient, it produces invalid html markup in most cases, and you usually have to redo most part of it to achieve an acceptable result...
Check if this tutorial can help you http://www.tutorialcode.com/html/slice-a-template-and-code-it-using-css/