fixed 0 starting index on gallery show page
* fixed not working buttons