automatically create picture slices and place on the page,separate javascript, css from html