In order to stack images they must be all highlighted as a group. And the group must be contiguous, in other words next to each other. However, if you are talking about stacking images for the purposes of creating an HDR image, that cannot be done using Lightroom. You will need Photoshop or some other software with HDR capabilities in order to do that. It is possible to stack any file type or combination of file types, including virtual copies.