Updating margin on loading animation