Make CSS rules for thumbnail position better.