Fixing offset of thumbnail