Image gallery changes on button clicks