moving gallery modifications inside the bootstrap framework