fix issues with gallery overlay and buy button