Access to three-dimensional structures in the brain is fundamental to probe signal processing at multiple levels, from integration of synaptic inputs to network activity mapping. Here, we present an optical method for independent three-dimensional photoactivation and imaging by combination of digital holography with remote-focusing. We experimentally demonstrate compensation of spherical aberration for out-of-focus imaging in a range of at least 300 μm, as well as scanless imaging along oblique planes. We apply this method to perform functional imaging along tilted dendrites of hippocampal pyramidal neurons in brain slices, after photostimulation by multiple spots glutamate uncaging. By bringing extended portions of tilted dendrites simultaneously in-focus, we monitor the spatial extent of dendritic calcium signals, showing a shift from a widespread to a spatially confined response upon blockage of voltage-gated Na(+) channels.