Create Gallery Code