Shrinking head with AngularJS