Update layout margin and photo size