Adapted Gallery View Box Model to avoid problems with IE.