fix broken thumbnail layout