fixed a couple of small animation related bugs and made gallery percentage sized based on width of wrapper