modified gallery and adding css and java