refactoring and fixed some css bugs

gallery was fixed for other browsers (safari) and home page was
scrollable