AngularJS directive with thumbnails grid and floating preview