I make up the layout of an online store, in the product there is a photo of the product and its variations (preview). 
Actually the question is, is the task of the layout designer or of the one who will pull the template onto the engine? If this is the task of the coder, then how best to implement it?