Bed having rack and pinion powered width expansion