Fix gallery container width dependencies