how to hide all posts under one category

You need a plugin like this https://wordpress.org/plugins/the-post-grid/ to show the post in grid view.