How do i offset all vertical faces of a solid at the same time?

Lets say I have a cube and want to offset all vertical sides outwards or inwards at the same time, is this possible?