File in gallery view by default insted on list view


I need to list my files in gallery view instead on list view by default, how can I do this?

and also add next or previous buttons/links to browse files in a particular category

any pointers on how this can be done would be of great help.

thanks in advance