Where residential units are built on the second floors of buildings the lot shall provide not less than 5,000 square feet per family and shall have an average width of not less than one-fourth the average depth, provided that this shall not require a lot to be wider than 50 feet.