develop gallery layout