fix wrapping of thumbnail display