Added z-index property in gallery