fixed both bugs dealing with zooming when opposite dimension is maxed
refactored slideZoom funtion into one function for both dimensions