Please help with removeChild function problem

I’ve got an image displayed after clicking on a thumbnail. I’ve got a removePhoto() function to remove de image before it shows the new one when clicking on another thumbnail. The problem is that when you click the hole movieclip that contains the image bounces down and up again to display the new image. Can anybody help me please.
Here’s the code:

function thumbClick(evt:MouseEvent):void {
    
    removePhoto();
    thumbSelected = evt.target.name;
    pos = evt.target.ord;
    loadImage(pos);
    
    
}



var loadPhoto:Loader;
var folder:String;
var total:Number = 0;
var i:Number;
var gXML:XML;
var photoList:Array = new Array();

function loadXML(xFile:String):void {
    
    var gLoader:URLLoader = new URLLoader();
    var gURL:URLRequest = new URLRequest(xFile);
    gLoader.load(gURL);
    gLoader.addEventListener(Event.COMPLETE, getXML);
}

function getXML(e:Event):void {
        
    gXML = new XML(e.target.data);
    total = gXML.imagen.length();
    
    
    for( i = 0; i < total; i++ ) {
        photoList.push( {
            photo: gXML.imagen*.photo.toString(), 
            titulo: gXML.imagen*.titulo.text(),
            wide: gXML.imagen*.wide.toString(),
            descripcion: gXML.imagen*.descripcion.text()
        } );
    }
}


var fotoSelected:String = thumbSelected;
var GalleryContainer:galleryContainer = new galleryContainer;


function loadImage(loc:Number):void {
    
    var wideList:Number = photoList[loc].wide ;

    if (wideList == 0) {
        GalleryContainer.photoContainer.x = 0;
    } else{
        GalleryContainer.photoContainer.x = 325 - (wideList / 2);
    }
    
    folder = "Galerias/" + photoFolder + "/";
    loadPhoto = new Loader;
    loadPhoto.load(new URLRequest(folder + thumbSelected)); 
    GalleryContainer.photoTitle.titlePhoto.text = photoList[loc].titulo;
    GalleryContainer.photoTitle.description.descText.text = photoList[loc].descripcion;
    GalleryContainer.photoContainer.addChild(loadPhoto);
    addChild(GalleryContainer);

    addEventListener(KeyboardEvent.KEY_DOWN, navImage);


}

function loadImage1(loc:Number):void {
    
    var wideList:Number = photoList[loc].wide ;
    
    if (wideList == 0) {
        GalleryContainer.photoContainer.x = 0;
    } else{
        GalleryContainer.photoContainer.x = 325 - (wideList / 2);
    }
    
    folder = "Galerias/" + photoFolder + "/";
    loadPhoto = new Loader;
    loadPhoto.load(new URLRequest(folder + photoList[loc].photo));  
    GalleryContainer.photoTitle.titlePhoto.text = photoList[loc].titulo;
    GalleryContainer.photoTitle.description.descText.text = photoList[loc].descripcion;
    GalleryContainer.photoContainer.addChild(loadPhoto);
    addChild(GalleryContainer);
    
    addEventListener(KeyboardEvent.KEY_DOWN, navImage);

}

function navImage(e:KeyboardEvent):void {
    
    switch ( e.keyCode ) {
        case Keyboard.LEFT :
            pos--;
            if ( pos < 0 )
            { 
                pos = 0;
            }
            removePhoto();
            loadImage1(pos);
            break;

        case Keyboard.RIGHT :
            pos++;
            if ( pos > total - 1)
            { 
                pos = total - 1;
            }
            removePhoto();
            loadImage1(pos);
            break;
            
        case Keyboard.UP :
            pos--;
            pos--;
            if ( pos < 0 )
            { 
                pos = 0;
            }
            removePhoto();
            loadImage1(pos);
            break;
            
        case Keyboard.DOWN :
            pos++;
            pos++;
            if ( pos > total - 1)
            { 
                pos = total - 1;
            }
            removePhoto();
            loadImage1(pos);
            break;
    }
    
}

function unloadPhoto():void {
    
    if (GalleryContainer) {
        removeChild(GalleryContainer);
    } 
}


function removeHolder() {
    
    var children:Array = new Array();

         while(thumbHolder.numChildren)
            {
              thumbHolder.removeChildAt(0);
            }

    var i:int = thumbHolder.numChildren;
         while( i -- )
            {
              thumbHolder.removeChildAt( i );
            }
    
}

function removePhoto() {
    
    var children:Array = new Array();

         while(GalleryContainer.photoContainer.numChildren)
            {
              GalleryContainer.photoContainer.removeChildAt(0);
            }

    var k:int = GalleryContainer.photoContainer.numChildren;
         while( k -- )
            {
              GalleryContainer.photoContainer.removeChildAt( k );
            }
    
}