implemented thumbnails align