load proper layout according to photo numbers