Dimensionality Reduction for Elastic 4D Printing