Check this out! (loading gallery after button press)

I can only seem to be able to have my gallery work on the main timeline but when i want to make my gallery appear after button press it seems to freeze and stop work :|, im realy confused, please take a look at my fla.

thankyou.