fixed new photogallery logic and styles for small photos (less than need)