Added tests for determining spanN when enlarging thumbnail, refactored to put ng-repeat on li rather than div