change the frame when has two items