Apply translate to svg group based on margins