Applied NextGen functionality to responsive gallery