add margins to zoomed element