added gitignore
gallery opening and closing functional