merged category tabs with php backend that queries based on category title and returns thumbnails