changes dimensions on newBox to percentage