code cleanup
added thumbnail for slide editing