add transition to thumbnails for code