translations and resizing