A smart car has been built that can drive sideways, and make itself shorter, to cope with urban parking.