Off-street parking space and loading space may be located in the side and rear yards, provided that no parking or loading area shall be located nearer than ten (10) feet to any side or rear lot line nor nearer than thirty (30) feet to any side or rear lot line when the lot line is contiguous to any residential district.