Great! As both things had the same name, I didnt realize that was the problem. Now it is fixed. Thank you very much!
And, yes, I will check the CSS of photos, I still didnt touch nothing of that, I was trying to solve the funcionallity first.
Thanks again.