fixed a bug with thumbnail position