fit svg overlay in bounds