When an object travels at speeds near to the speed of light, its length becomes shorter, which is called "length contraction".
At the same time as there is length contraction there is also time contraction.
In the following visual you can see what would happen to a train carriage which travelled at speeds close to the speed of light.