Rotate, Rinse, Repeat...Can you rotate images using html?

Hello all,

Some I’m slicing up some layouts and again I run into the problem of not knowing how to rotate some sliced jpegs. If you look at the image below you’ll see how I sliced the image. To keep the file size down I only want to use slices 4 and 5 but I can’t figure out how to rotate them to create the four corners of the frame. Does anyone know how to do this.

Any help would be much appreciated.