first dev for gallery display in photos/common