1570s, from side (n.) + way (n.), with adverbial genitive. To look sideways "cast scornful glances" is recorded from 1844.
turned sideways to show the profile
a picture lit sideways
the car slipped sideways into the ditch