resizing and relocating background