Selecting all isnt selecting all

for some weired reason I cant select all the layers. Three of them refuse to be selected so I cant move them with all the other layers. Ive no idea why this is happening. They are the only layers to have lots of keyframes on if that helps. The rest of the layers are just static images which run through each frame. No matter what I do I cant select and move these layers together with the rest of the image. The padlocks arent on. I thought it was something to do with them being in a folder at first, then i took them out and its still doing it. The only way it will move is if each layer and frame is moved individually. Even when you right click press select all (which shows all frames selected) then move the image, the same three lanes unselect meaning that they dont move. This is one weired situation.