AngularJS directive for tiles