Added constraints and code to make single line of horizontal photos on device rotation