Drawing slices as buttons in preview window