refined my detail gallery with an if/else statement to add a class to the active state when clicked.